package com.xbongbong.pro.dynamic.pojo.dto;

import com.xbongbong.pro.listbatch.pojo.dto.AddLabelDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 *标签
 *
 *@author weijianxun
 */
@Setter
@Getter
@ToString
public class DynamicLabelDTO implements Serializable {
    private static final long serialVersionUID = -6746410175810812511L;
    private AddLabelDTO addLabelDTO;
    private Boolean addOrDelete;

    public static DynamicLabelDTO initDynamicLabelDTO(AddLabelDTO addLabelDTO, Boolean addOrDelete) {
        DynamicLabelDTO dynamicLabelDTO = new DynamicLabelDTO();
        dynamicLabelDTO.setAddLabelDTO(addLabelDTO);
        dynamicLabelDTO.setAddOrDelete(addOrDelete);
        return dynamicLabelDTO;
    }
}
